﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ZPod.MTG.Windows
{
	public partial class InputBox : Form
	{
		#region Private Constructor

		private InputBox()
		{
			InitializeComponent();
		}

		#endregion

		#region Public Methods

		public static string ShowInputBox(string title)
		{
			using (InputBox dialog = new InputBox())
			{
				dialog.Text = title;
				if (dialog.ShowDialog() == DialogResult.OK &&
					!String.IsNullOrEmpty(dialog.txtInput.Text))
				{
					return dialog.txtInput.Text;
				}
				else
				{
					return String.Empty;
				}
			}
		}

		#endregion
	}
}
